package com.ww.sound_emission.domain.mqtt;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cnc {
        @JsonProperty("T")
        private Integer T;
        private String mainProg;
        private String subProg;
        private Double x;
        private Double y;
        private Double z;
        private Integer status;

        @Override
        public String toString() {
                return "Cnc{" +
                        "T=" + T +
                        ", mainProg='" + mainProg + '\'' +
                        ", subProg='" + subProg + '\'' +
                        ", x=" + x +
                        ", y=" + y +
                        ", z=" + z +
                        ", status=" + status +
                        '}';
        }

        public Integer getT() {
                return T;
        }

        public void setT(Integer t) {
                T = t;
        }

        public String getMainProg() {
                return mainProg;
        }

        public void setMainProg(String mainProg) {
                this.mainProg = mainProg;
        }

        public String getSubProg() {
                return subProg;
        }

        public void setSubProg(String subProg) {
                this.subProg = subProg;
        }

        public Double getX() {
                return x;
        }

        public void setX(Double x) {
                this.x = x;
        }

        public Double getY() {
                return y;
        }

        public void setY(Double y) {
                this.y = y;
        }

        public Double getZ() {
                return z;
        }

        public void setZ(Double z) {
                this.z = z;
        }

        public Integer getStatus() {
                return status;
        }

        public void setStatus(Integer status) {
                this.status = status;
        }
// Getter 和 Setter 方法
    }